
<script setup lang="ts" name="App">
    import { ref } from 'vue'
    import { useAdd } from './useAdd.js'
    
    
    
        </script>
        
        <template>
    
         <!-- <a href="#/home">切换home</a>
         <a href="#/test">切换test</a> -->
         <div>
         
           <router-link replace :to="{
           name:'home'}">切换home</router-link>
           <router-link replace :to="{
           name:'data',
              params:{
                id:1,
                name:'geyao',
                age:18
              }}">切换test</router-link>
            <router-link replace :to="{
              name:'test',
              
            }">切换test</router-link>
         </div>
         <router-view></router-view>
        </template>
        
        <style scoped>
        
        </style>
        
        
        
        
        